Skip to content

[JENKINS-75278] User pages for users with '\' in the user name fail after upgrading to 2.479.1#10344

Merged
basil merged 11 commits intojenkinsci:masterfrom
olamy:JENKINS-75278
Mar 12, 2025
Merged

[JENKINS-75278] User pages for users with '\' in the user name fail after upgrading to 2.479.1#10344
basil merged 11 commits intojenkinsci:masterfrom
olamy:JENKINS-75278

Conversation

@olamy
Copy link
Copy Markdown
Member

@olamy olamy commented Feb 26, 2025

Signed-off-by: Olivier Lamy olamy@apache.org

See JENKINS-75278.

Testing done

Proposed changelog entries

  • Upgrade to Jetty 12.0.17 to fix User pages for users with '\' in the user name fail

Proposed changelog category

/label bug

Proposed upgrade guidelines

N/A

Submitter checklist

  • The Jira issue, if it exists, is well-described.
  • The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see examples). Fill in the Proposed upgrade guidelines section only if there are breaking changes or changes that may require extra steps from users during upgrade.
  • There is automated testing or an explanation as to why this change has no tests.
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadocs, as appropriate.
  • New deprecations are annotated with @Deprecated(since = "TODO") or @Deprecated(forRemoval = true, since = "TODO"), if applicable.
  • New or substantially changed JavaScript is not defined inline and does not call eval to ease future introduction of Content Security Policy (CSP) directives (see documentation).
  • For dependency updates, there are links to external changelogs and, if possible, full differentials.
  • For new APIs and extension points, there is a link to at least one consumer.

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

  • There are at least two (2) approvals for the pull request and no outstanding requests for change.
  • Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
  • Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
  • Proper changelog labels are set so that the changelog can be generated automatically.
  • If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 5, 2025

Please take a moment and address the merge conflicts of your pull request. Thanks!

@github-actions github-actions bot removed the unresolved-merge-conflict There is a merge conflict with the target branch. label Mar 6, 2025
@comment-ops-bot comment-ops-bot bot added the bug For changelog: Minor bug. Will be listed after features label Mar 6, 2025
@olamy olamy removed the work-in-progress The PR is under active development, not ready to the final review label Mar 6, 2025
@olamy olamy marked this pull request as ready for review March 6, 2025 08:57
@olamy
Copy link
Copy Markdown
Member Author

olamy commented Mar 7, 2025

tests looks very flaky :(

basil
basil previously requested changes Mar 7, 2025
Copy link
Copy Markdown
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

java.lang.AssertionError: expected:<400> but was:<404>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:633)
	at hudson.model.DirectoryBrowserSupportTest.windows_cannotViewAbsolutePath(DirectoryBrowserSupportTest.java:1122)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:659)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:840)

Copy link
Copy Markdown
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process. Thanks!

@basil basil self-assigned this Mar 11, 2025
@basil basil added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Mar 11, 2025
Copy link
Copy Markdown

@A1exKH A1exKH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

olamy added 8 commits March 12, 2025 09:12
…fter upgrading to 2.479.1

Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
olamy added 3 commits March 12, 2025 09:12
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
@basil basil merged commit 9f91315 into jenkinsci:master Mar 12, 2025
16 checks passed
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 14, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Mar 15, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
krisstern pushed a commit to krisstern/jenkins that referenced this pull request Mar 15, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 15, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 15, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 16, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 17, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)

Add commons-discovery dependency version 0.5 in pom.xml

Remove unnecessary SuppressFBWarnings annotations from CLI.java

Add path validation and sanitization in CLI.java

Add path traversal warnings to readAuthFromFile and getFileFromArguments methods in CLI.java
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 17, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 17, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 17, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 17, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 18, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
MarkEWaite pushed a commit to MarkEWaite/jenkins that referenced this pull request Mar 19, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
gounthar pushed a commit to gounthar/jenkins that referenced this pull request Mar 19, 2025
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
(cherry picked from commit d667ea5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug For changelog: Minor bug. Will be listed after features ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants